package com.restaurant.application.level;

import com.nebutown.description.UnitDescription;

public class LevelDesc extends UnitDescription {
    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(Level.class, "LevelData");
        desc.nextBean("LevelData")
                .add("id", String.class)
                .add("memberLevel", Integer.class)
                .add("memberName", String.class)
                .add("score", Integer.class)
                .add("createTime", Long.class)
                .add("modifyTime", Long.class)
        ;
        desc
                .addUiFunction("save", "LevelData")
                .addUiFunction("cancel", null)
        ;
        desc.run("./");
    }
}
